package com.zhiyin.seal.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhiyin.seal.entity.CompanyContractTypeEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface CompanyContractTypeDao extends BaseMapper<CompanyContractTypeEntity> {

    List<CompanyContractTypeEntity> selectCompanyConstractTypeList(@Param("companyId") Long companyId);

    List<CompanyContractTypeEntity> selectCompanyConstractTypeListByParentId(@Param("id") Long id,@Param("companyId") Long companyId);

    Integer insertCompanyContractType(@Param("contract") CompanyContractTypeEntity companyContractTypeEntity);

    Integer deleteCompanyContractType(@Param("id") Long id);
}
